package com.bruce.pattern.creational.prototype.clone;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * Created by bruce on 2018/11/3 15:47
 */
@Setter
@Getter
public class Pig implements Cloneable {
    private String name;

    private Date birthday;

    public Pig(String name, Date birthday) {
        this.name = name;
        this.birthday = birthday;
    }

    @Override
    public Pig clone() throws CloneNotSupportedException {
        return (Pig)super.clone();
    }
}
